package org.xxpay.pay.channel.jfpay;

import org.xxpay.core.common.util.MD5Util;
import org.xxpay.core.common.util.MyLog;

/**
 * @author: dingzhiwei
 * @date: 2020/7/3
 * @description:
 */
public class JfpayUtil {

    private static final MyLog _log = MyLog.getLog(JfpayUtil.class);

    public static String getSign(String pay_amount, String pay_applydate, String pay_bankcode, String pay_callbackurl, String pay_memberid, String pay_notifyurl, String pay_orderid, String key) {
        String stringSignTemp ="pay_amount=" + pay_amount + "&pay_applydate=" + pay_applydate + "&pay_bankcode=" + pay_bankcode + "&pay_callbackurl=" + pay_callbackurl + "&pay_memberid=" + pay_memberid + "&pay_notifyurl=" + pay_notifyurl + "&pay_orderid=" + pay_orderid + "&key=" + key;
        _log.info("签名串：" + stringSignTemp);
        return MD5Util.string2MD5(stringSignTemp).toUpperCase();
    }

}
